package com.kusen.village.raise.topic;

import com.kusen.village.raise.topic.impl.HopefulTopic;
import com.kusen.village.raise.topic.impl.IOTTopic;
import com.kusen.village.raise.topic.impl.TestDockerTopic;

/**
 * @description: 处理各个实现的应用类
 * @author: ghl
 * @create: 2021-10-13 11:00
 **/
public class TopicApplication {
    private TopicStaff  topicStaff=new TopicStaff();;
    {
        topicStaff.addTopic(new HopefulTopic());
        topicStaff.addTopic(new IOTTopic());
        topicStaff.addTopic(new TestDockerTopic());
    }

    public TopicStaff getTopicStaff() {
        return topicStaff;
    }
   private TopicApplication (){}
    /**
     * 饿汉设计模式
     */
    private static TopicApplication topicApplication=new TopicApplication();

    public static TopicApplication getTopicApplication(){
        return topicApplication;
    }
}
